package com.foreknow.demo10;

public class Test {
    public static void main(String[] args) {
    //        Dog[] dogs = new Dog[3];
    //
    //        Penguin[] penguins = new Penguin[3];

        Pet[] pets = new Pet[3];
        Dog dog = new Dog();
        Penguin penguin = new Penguin();

        pets[0] = dog;
        pets[1] = penguin;





    }
}
